// pages/home/components/ToggleItem/index.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    list: [
      { icon: '/assets/images/my_file.png', text: '我的档案', url: '/packageA/pages/authentication/register2/index?title=我的档案' },
      { icon: '/assets/images/talent_subsidies.png', text: '人才补贴', url: '/packageA/pages/active/person/index' },
      { icon: '/assets/images/consumer_discounts.png', text: '消费优惠', url: '/packageA/pages/nopage/index?title=消费优惠' },
      { icon: '/assets/images/assistance_center.png', text: '诉求反馈', url: "/packageA/pages/active/AssistanceCenter/index" }
    ]
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onClick(event) {
      const { url } = event.currentTarget.dataset;
      wx.navigateTo({ url });
    }
  }
})